
	<select name="<?php echo $rel['key']?>">
		<option value=""> - None - </option>
		<?php foreach($rel['list'] as $row): ?>
			<option value="<?php echo $row[$rel['idkey']]?>"
			<?php if ($rel['value'] == $row[$rel['idkey']])echo 'selected="selected"'?>
			>
			<?php foreach($rel['fields'] as $field => $info):?>
			<?php echo $row[$field]?> - 
			<?php endforeach; ?>
			</option>
		<?php endforeach; ?>
	</select>
